package cn.iocoder.yudao.module.service.controller.admin.message.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 对话消息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ServiceMessageRespVO {

    @Schema(description = "消息编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27473")
    @ExcelProperty("消息编号")
    private Long id;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("用户类型")
    private Integer userType;


    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("消息类型")
    private Integer msgType;

    @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("消息内容")
    private String msgContent;

    @Schema(description = "发信人id", example = "1811")
    private Long fromUserId;

    @Schema(description = "发信人名称", example = "芋艿")
    @ExcelProperty("发信人名称")
    private String fromUserName;

    @Schema(description = "收信人id", example = "24798")
    private Long toUserId;

    @Schema(description = "收信人名称", example = "王五")
    @ExcelProperty("收信人名称")
    private String toUserName;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}